<?php
/**
 * 优化 SEO 查询， 返回 blade 模板
 *
 * @author Zeon <scplay@gmail.com>
 * @date 2018/8/28
 * @copyright PanxSoft Inc.
 */

use App\Http\Controllers\WebPage\Seo\ProductionController;
use App\Http\Controllers\WebPage\Seo\NewsController;

Route::group([
    'middleware' => 'lang',
    'prefix'     => 'seo' // 必须写这里，不然会和原 production 冲突
], function () {
    // 产品中心
    Route::resource('/production', 'ProductionController', [
        'only'  => array_keys(ProductionController::ROUTES),
        'names' => ProductionController::ROUTES
    ]);

    Route::resource('/news', 'NewsController', [
        'only'  => array_keys(NewsController::ROUTES),
        'names' => NewsController::ROUTES
    ]);

//    // 工程案例
    Route::resource('/project-case', 'NewsController', [
        'only'  => array_keys(NewsController::PROJECT_CASE_ROUTES),
        'names' => NewsController::PROJECT_CASE_ROUTES
    ]);

    // 解决方案
    Route::resource('/solution-case', 'NewsController', [
        'only'  => array_keys(NewsController::SOLUTION_CASE_ROUTES),
        'names' => NewsController::SOLUTION_CASE_ROUTES
    ]);

});
